public class Ex4_7{
	public static void main(String[] args){
		double tuition = 10000;
		int year = 1;
		double totalFour = 0;
		do{
			if (year <= 4)
				totalFour += tuition;
			System.out.printf("[%d]\t%.2f\n", year, tuition);
			tuition *= 1.05;
			year++;
		}while (year <= 10);
		System.out.printf("The total tuition for the first four years are: %.2f\n", totalFour);
	}
}